
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"><meta name="format-detection" content="telephone=no">
    <title>搜索</title>
    <link rel="stylesheet" href="${root}assets/third/seedsui/plugin/seedsui/seedsui.min.css">
    <style type="text/css">
        /*菜单图标*/
        .grid.icon li > a > i{
            font-size:30px;
            width: 30px;
            height: 30px;
            line-height:30px;
        }
        /*热门推荐*/
        .list .list-more{
            color:#7b7b7b;
        }
        /*最新活动*/
        .picmetro{
            padding:4px;
            background-color:white;
        }
        .picmetro .case1{
            height: 244px;
            margin-right:2px
        }
        .picmetro .case1,.picmetro .case2 div{
            background-size:cover;
            background-position:center center;
            background-repeat:no-repeat;
        }
        .picmetro .case2{
            margin-left: 2px;
        }
        .picmetro .case2 div:nth-child(1){
            margin-bottom:2px;
        }
        .picmetro .case2 div:nth-child(2){
            margin-top:2px;
        }
    </style>
</head>
<body ontouchstart="">
        <header>
        	<div class="titlebar reverse " >
        	<a href="${root}" style="color: white;"><i class="icon icon-arrowleft"></i></a>
            <div class="input-box margin8 radius20" style="width: 70%;" data-input="clear">
            
                <input id="txt1"  type="search" value="${p.q!}" placeholder="没有内容" class="search">
            </div>
            <a class="right" style="color: white;" onclick="addUrl('q',document.getElementById('txt1').value)">搜索</a>
        </div>
        </header>
        <article style="">
        	<ul class="slidebar">
            <li class="tab ${decode(p.type,'1','active','2','','3','','active')}" onclick="addUrl('type','1')">
                <i class="icon icon-typevideo"></i>
                <label class="tab-label">课程</label>
            </li>
            <li class="tab ${decode(p.type,'2','active','')}" onclick="addUrl('type','2')">
                <i class="icon icon-fileperson"></i>
                <label class="tab-label">讲师</label>
            </li>
            <li class="tab ${decode(p.type,'3','active','')}" onclick="addUrl('type','3')">
                <i class="icon icon-medal-fill"></i>
                <label class="tab-label">套餐</label>
            </li>
        </ul>
         <!--:if(p.type=="2"){  -->
         <div id="teacher_list">
         <!--:for(teacher in obj){  -->
    			<ul class="list between noclick"  >
    				<li onclick="location.href='${root}teacher/${teacher.id}'">
    					<div class="justify"><div class="photo" style="background-image:url(${www}${teacher.img})"></div></div>
    					<div class="justify-content" style="margin-top:0px;">
    						<p class="color-warn">${teacher.name}
    						<small class="right top"><a>${teacher.course_num}</a>课程</small>
    						</p>
    						<small class="nowrap" >${teacher.text}</small>
    					</div>
    				</li>
    				<li style="border-width:0 0 0 1;">
    					
    				</li>
    			</ul>
    			<!--:}  -->
    			</div>
        <!--:}else if(p.type=="3"){  -->
        <ul id="combo_list" class="grid album" data-col="2" style="background-color:white;" >
                <!--:for(combo in obj){  -->
                <li onclick="location.href='${root}combo/${combo.id}'">
                    <a style="background-image: url(${www}${combo.img});">
                    <div class="sticker top right">
                    <span>${combo.oldprice/combo.price,"#.#"}折</span>
                    </div>
                        <label class="bottom" style="background-color: black;width: 100%;position: absolute;bottom: 0px;left: 0px;">
                        <small class="nowrap" style="width: 100%;display: inline-block;">${combo.title}</small></label>
                    </a>
                    <div style="text-align: left;">
                    <small><i class="icon icon-time" style="font-size: 12px;width: 12px;height: 12px;"></i>${combo.section}课程</small>
                    
                    <small style="float: right;color: red;">￥${combo.price}</small>
                    
                    </div>
                </li>
                <!--:}  -->
            </ul>
        <!--:}else{  -->
         <ul id="course_list" class="grid album" data-col="2" style="background-color:white;" >
                <!--:for(course in obj){  -->
                <li onclick="location.href='${root}course/${course.id}'">
                    <a style="background-image: url(${www}${course.img}.jpg);">
                    <div class="sticker top right">
                    <!--:if(course.price>0){  -->
                    <span>￥${course.price,"#"}</span>
                    <!--:}else{  -->
                    <span>NEW</span>
                    <!--:}  -->
                    </div>
                        <label class="bottom" style="background-color: black;width: 100%;position: absolute;bottom: 0px;left: 0px;">
                        <small class="nowrap" style="width: 100%;display: inline-block;">${course.title}</small></label>
                    </a>
                    <div style="text-align: left;">
                    <small><i class="icon icon-time" style="font-size: 12px;width: 12px;height: 12px;"></i>${course.section}章节</small>
                     <!--:if(course.price>0){  -->
                    <small style="float: right;color: red;">￥${course.price}</small>
                     <!--:}else{  -->
                    <small style="float: right;color: red;">免费</small>
                     <!--:}  -->
                    </div>
                </li>
                <!--:}  -->
            </ul>
            <!--:}  -->
        </article>
	
    <script src="${root}assets/third/seedsui/plugin/jquery/jquery.min.js"></script>
    <script src="${root}assets/third/seedsui/plugin/seedsui/seedsui.min.js"></script>
    <!--Exmobi能力-->
    <script src="${root}assets/third/seedsui/plugin/exmobi/exmobi.js"></script>
    <script src="${root}js/url.js"></script>
    <script type="text/javascript">
		var carrousel1;
		EventUtil.addHandler(window,"load",function(e){
			//广告轮播
			carrousel1 = new Slider('#carrousel1', {
				pagination: '.slider-pagination'
			});
		});
		//定义exmobi返回
		function back(){history.go(-1);}
		//remove原返回事件绑定
		EventUtil.removeHandler(document,"backmonitor",back);
		//添加新的返回事件
		EventUtil.addHandler(document,"backmonitor",function(){
			Exmobi.dbclose();
		});
	</script>
</body>
</html>